﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Fly.Common
{
    /// <summary>
    /// 错误描述信息
    /// </summary>
    [Serializable]
    public class ErrorCode
    {
        #region 错误生成时间
        /// <summary>
        /// 错误生成时间
        /// </summary>
        private DateTime created = DateTime.Now;
        /// <summary>
        /// 错误生成时间
        /// </summary>
        public DateTime Created
        {
            get
            {
                return created;
            }
            set
            {
                created = value;
            }
        } 
        #endregion

        #region 错误描述
        /// <summary>
        /// 错误描述
        /// </summary>
        public string Description
        {
            set;
            get;
        } 
        #endregion

        #region 帮助链接
        /// <summary>
        /// 帮助链接
        /// </summary>
        public string HelpLink
        {
            set;
            get;
        } 
        #endregion

        #region 错误码
        /// <summary>
        /// 错误码
        /// </summary>
        public int Error
        {
            set;
            get;
        } 
        #endregion

        #region 错误级别
        /// <summary>
        /// 错误级别
        /// </summary>
        public int Level
        {
            set;
            get;
        } 
        #endregion

        #region 错误标题
        /// <summary>
        /// 错误标题
        /// </summary>
        public string Title
        {
            set;
            get;
        } 
        #endregion

        #region 更新时间
        /// <summary>
        /// 更新时间
        /// </summary>
        private DateTime updated = DateTime.Now;
        /// <summary>
        /// 更新时间
        /// </summary>
        public DateTime Updated
        {
            get
            {
                return updated;
            }
            set
            {
                updated = value;
            }
        } 
        #endregion
    }
}
